package cn.yunhe.biz;

import java.util.List;

import cn.yunhe.dao.IScoreDao;

import cn.yunhe.dao.ScoreDaoImpl;



import cn.yunhe.entity.Enroll_in_province;


import cn.yunhe.entity.Province;






import cn.yunhe.entity.University;

public class ScoreBizImpl implements IScoreBiz {

	IScoreDao is = new ScoreDaoImpl();
	public  List<University> SearchProvince(int score, int pid, int wenorli) {
		
		return is.SearchProvince(score, pid, wenorli);
	}
	

	public List<Enroll_in_province> getAll() {
		// TODO Auto-generated method stub
		return is.getAll();
	}
	public List<Province> SearchAll() {
		
		return is.SearchAll();

	}
	@Override
	public boolean add(String major, int wenorli, int e_pro, int e_uni, int e_num, int e_avg, int e_low) {
		// TODO Auto-generated method stub
		int r = is.add(major,wenorli,e_pro,e_uni,e_num,e_avg,e_low);
		return r>0?true:false;
	}
	@Override
	public boolean update(String major, int wenorli, int e_pro, int e_uni, int e_num, int e_avg, int e_low, int e_id) {
		// TODO Auto-generated method stub
		int r = is.update(major,wenorli,e_pro,e_uni,e_num,e_avg,e_low,e_id);
		return r>0?true:false;
	}
	@Override
	public boolean del(int e_id) {
		int r = is.del(e_id);
		return r>0?true:false;



	}

}
